//1. 引入创建仓库的函数
//a.1 使用 redux-thunk 支持异步请求 applyMiddleware

import {createStore,applyMiddleware} from "redux"
//2.引入 reducer
import reducer from "./reducers"
//a.2 reduxThunk 引入
import reduxThunk from "redux-thunk"
//3. 导出仓库
//a.3 将 reduxThunk 作为第二个参数传入
export default createStore(reducer,applyMiddleware(reduxThunk))
// export default createStore(reducer)